package edu.zut.cs.software.teach.student.course.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.teach.base.domain.BaseEntity;

@Entity
@Table(name = "T_Sourse")

public class Course extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3801256818360295303L;
	@Column
	String name;

	@Column
	String code;

	@ManyToOne
	@JoinColumn(name = "Course_ID")
	CourseCategory courseCategory;

	public CourseCategory getProductCategory() {
		return courseCategory;
	}

	public void setProductCategory(CourseCategory courseCategory) {
		this.courseCategory =courseCategory;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
